<!DOCTYPE html>
<html>
<head>
    <title>每日能量发放</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="日期格式2019-01-01"/>
                </i-col>
                <i-col span="3">
                    <i-select v-model="q.type" placeholder="收益类型">
                        <i-option value="1">普通邀请注册</i-option>
                        <i-option value="2">运动得能量值-普通用户</i-option>
                        <i-option value="3">获得资质-D-one特权</i-option>
                        <i-option value="4">运动得能量值-D-one特权</i-option>
                        <i-option value="5">新用户注册</i-option>
                        <i-option value="6">D-one邀请注册</i-option>
                        <i-option value="7">任务奖励</i-option>
                        <i-option value="8">兑换商品</i-option>
                        <i-option value="10">商城产购买品</i-option>
                        <i-option value="11">普通运动返奖励</i-option>
                        <i-option value="12">Done运动返奖励</i-option>
                        <i-option value="13">能量值转入</i-option>
                        <i-option value="14">能量值转出</i-option>
                        <i-option value="15">每日释放</i-option>
                        <i-option value="16">游戏消耗</i-option>
                        <i-option value="17">兑换Done</i-option>
                        <i-option value="18">游戏奖励</i-option>
                        <i-option value="19">普通用户推荐Done</i-option>
                        <i-option value="20">Done用户推荐Done</i-option>
                        <i-option value="21">团队购物</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("energysnapshot:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("energysnapshot:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("energysnapshot:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("energysnapshot:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="energySnapshot" :rules="ruleValidate" :label-width="80">
            <Form-item label="总量" prop="total">
                <i-input v-model="energySnapshot.total" placeholder="总量"/>
            </Form-item>
            <Form-item label="类型" prop="type">
                <i-input v-model="energySnapshot.type" placeholder="类型"/>
            </Form-item>
            <Form-item label="类型名称" prop="typeName">
                <i-input v-model="energySnapshot.typeName" placeholder="类型名称"/>
            </Form-item>
            <Form-item label="日期" prop="snapDate">
                <i-input v-model="energySnapshot.snapDate" placeholder="日期"/>
            </Form-item>
            <Form-item label="创建日期" prop="createDate">
                <i-input v-model="energySnapshot.createDate" placeholder="创建日期"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/statistics/energysnapshot.js?_${date.systemTime}"></script>
</body>
</html>